import request from '@/utils/request'

// 部门月报表
export function monthlyReportList(query) {
  return request({
    url: `/system/result_personal/deptStatistics?deptName=${query.deptName}&startTime=${query.startTime}&endTime=${query.endTime}`,
    method: 'get',
    params: query
    
  })
}

// /system/result_personal/deptStatistics?deptName=系统管理员&startTime=2024-01-31&endTime=2024-05-31

// 咨询中心月报表
export function monthlyReportCenterList(query) {
  return request({
    url: `/system/result_personal/consultStatistics?deptName=${query.deptName}&startTime=${query.startTime}&endTime=${query.endTime}`,
    method: 'get',
    params: query
  })
}

// 查询所有部门
export function listDept(query) {
  return request({
    url: '/system/dept/list',
    method: 'get',
    params: query
  })
}